package com.example.beatbox;

import android.content.Intent;

public class Sound {
    private String mAssetsPath;
    private String mName;
    private Integer mSoundId;

    public Integer getSoundId() {
        return mSoundId;
    }

    public void setSoundId(Integer mSoundId) {
        this.mSoundId = mSoundId;
    }

    public Sound(String assetPath){
        mAssetsPath = assetPath;
        String[] components = assetPath.split("/");
        String fileName = components[components.length - 1];
        mName = fileName.replace(".wav","");

    }

    public String getmAssetsPath() {
        return mAssetsPath;
    }

    public void setmAssetsPath(String mAssetsPath) {
        this.mAssetsPath = mAssetsPath;
    }

    public String getmName() {
        return mName;
    }

    public void setmName(String mName) {
        this.mName = mName;
    }
}
